home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_void1.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  620 b   |  35 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_VOID1
  5.  
  6. creation make
  7.  
  8. feature
  9.  
  10.    make is
  11.       do
  12.      is_true(like_is_equal(Void));
  13.       end;
  14.  
  15.    like_is_equal(other: like Current): BOOLEAN is
  16.       do
  17.      Result := true;
  18.       end;
  19.  
  20.    is_true(b: BOOLEAN) is
  21.       do
  22.      cpt := cpt + 1;
  23.      if not b then
  24.         std_output.put_string("TEST_VOID1: ERROR Test # ");
  25.         std_output.put_integer(cpt);
  26.         std_output.put_string("%N");
  27.      else
  28.         -- std_output.put_string("Yes%N");
  29.      end;
  30.       end;
  31.    
  32.    cpt: INTEGER;
  33.  
  34. end -- TEST_VOID1
  35.